package com.lingyuan.common.core.domain.vo.pms;

import lombok.Data;

import java.util.List;

/**
 * @ClassName SearchResult
 * @Description 描述 查询商品列表返回信息封装类
 * @Author guoxin
 * @Date 2024/9/21 12:12
 */
@Data
public class SearchResult {
    /**
     * 分页
     */
    private Integer pageNum;
    private Integer pageSize;
    private Long total;
    /**
     * 商品信息
     */
    private List<SkuAttrVo> skuVoList;
    /**
     * 商品分类信息
     */
    private List<CateVo> cateVoList;
    /**
     * 品牌分类信息
     */
    private List<BrandVo> brandVoList;
    /**
     * sku销售属性
     */
    private List<SkuAttrsVo> skuAttrsVos;

    @Data
    public class CateVo{
        private Long cateId;
        private String cateName;
    }
    @Data
    public class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }
    @Data
    public static class SkuAttrsVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValues;
    }
}
